Operations

Numeric Operations

Arithmetic
  • Addition

    • +

  • Subtraction

    • -

  • Multiplication

    • *

  • Division

    • /

  • Remainder

    • %

Compound
  • All operators support Operation + Assignment:

    • counter += 1

Logical Comparisons

Basic
  • Equal

    • ==

  • Not equal

    • !=

  • Greater

    • >

  • Less

    • <

  • AND

    • &&

  • OR

    • ||

  • NOT

    • !

  • Identical:

    • Check whether two constants or variables refer to the same  single instance  (class).

    • ===

  • Not-identical:

    • Check whether two constants or variables refer to a different   instance  (class).

    • !==

Bitwise
  • AND

    • &

  • OR

    • |

  • XOR

    • ^

  • L SHIFT

    • <<

  • R SHIFT

    • >>